package com.ayanami.userservice.service;

import com.ayanami.userservice.entity.TbUser;
import com.ayanami.userservice.vo.TbUserVO;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author ayanami
 * @since 2020-07-20
 */
public interface TbUserService extends IService<TbUser> {

    IPage<TbUser> findUserAndDept(Page<TbUser> page, QueryWrapper<TbUser> queryWrapper);

    void exportUserInfoExcel(HttpServletResponse Response,TbUserVO tbUserVO) throws IOException;

    void importUserInfoExcel(MultipartFile file) throws Exception;
}
